package chapter03;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

/**
 * Created by Miracle yaochengwei on 2022/4/4 11:06
 */
public class HomeWork3 {
    public static void main(String[] args) {
    //编程，保存两本书名，用+拼接，看效果。保存两个性别，用加号拼接，看效果。保存两本书价格，用加号拼接,看效果HomeworkO3.java
     //书名是字符串
    String book1 = "天龙八部";
    String book2 = "笑傲江湖";
		System.out.println(book1 + book2);//天龙八部笑傲江湖


    //性别应该用char保存
    char c1 = '男';
    char c2 = '女';
		System.out.println(c1 + c2);//得到男 字符的码值 + 女字符的码值

    //保存两本书的加个价格
    double price1 = 123.56;
    double price2 = 100.11;
		System.out.println(price1 + price2);// 123.56+100.11
}
}
